﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace MathTutorPro.Data.Entities
{
    public class ChatPrivateMessage
    {
        public int Id { get; set; }

        public int ChatPrivateId { get; set; }

        public string SenderId { get; set; }
        public AppUser SendUser { get; set; }
        public string? Content { get; set; }

        public DateTime? SentTime { get; set; }

        public bool IsRead { get; set; } = false;

        public bool IsActive { get; set; } = false;

        public bool IsDelete { get; set; } = false;

        // 导航属性
        //[NotMapped]
        //public ChatPrivate ChatPrivate { get; set; }
    }
}
